import React, {Component} from 'react';
import {Text, View} from "react-native";
import Button from "react-native-button";

import {styles} from "../App"

export default class DetailsScreen extends React.Component {
    static navigationOptions = {
        title: '详情页面',
    };

    render() {
        return (
            <View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
                <Text style={styles.text}>详情页面</Text>
                <Button style={styles.button}
                        title="Go to Details"
                        onPress={() => this.props.navigation.navigate('Details')}>
                    Go to Details</Button>
            </View>
        );
    }
}


